package com.lh.controller;


import com.lh.entity.table.DeadlineRectificationPeriod;
import com.lh.service.DeadlineRectificationPeriodService;
import com.lh.utils.Answer;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/deadlineRectificationPeriod")
public class DeadlineRectificationPeriodController {
    @Resource
    private DeadlineRectificationPeriodService deadlineRectificationPeriodService;

    @RequestMapping("/addDeadlineRectificationPeriod")
    public Answer<Object> addDeadlineRectificationPeriod(@RequestBody DeadlineRectificationPeriod deadlineRectificationPeriod) {
        return deadlineRectificationPeriodService.addDeadlineRectificationPeriod(deadlineRectificationPeriod);
    }

    @RequestMapping("/reviewDeadlineRectificationPeriod")
    public Answer<Object> reviewDeadlineRectificationPeriod(@RequestBody DeadlineRectificationPeriod deadlineRectificationPeriod) {
        return deadlineRectificationPeriodService.reviewDeadlineRectificationPeriod(deadlineRectificationPeriod);
    }

    @RequestMapping("/getDeadlineRectificationPeriod")
    public Answer<Object> getDeadlineRectificationPeriod(@RequestBody DeadlineRectificationPeriod deadlineRectificationPeriod) {
        return deadlineRectificationPeriodService.getDeadlineRectificationPeriod(deadlineRectificationPeriod);
    }

    @RequestMapping("/getDeadlineRectificationPeriodListByNodeId")
    public Answer<Object> getDeadlineRectificationPeriodListByNodeId(@RequestBody DeadlineRectificationPeriod deadlineRectificationPeriod) {
        return deadlineRectificationPeriodService.getDeadlineRectificationPeriodListByNodeId(deadlineRectificationPeriod);
    }

    @RequestMapping("/addDeadlineRectificationPeriodNoReview")
    public Answer<Object> addDeadlineRectificationPeriodNoReview(@RequestBody DeadlineRectificationPeriod deadlineRectificationPeriod) {
        return deadlineRectificationPeriodService.addDeadlineRectificationPeriodNoReview(deadlineRectificationPeriod);
    }
}
